package cn.hh.wechatkit.data.postdata.card;

/**
 * Created this one by HMH on 2017/5/9.
 */
public class metaCardUpdateStockPostData {
    private int increase_stock_value=0;//增加的库存数量
    private int reduce_stock_value=0;//减少的库存数量
    private String card_id;

    public metaCardUpdateStockPostData() {
    }

    public metaCardUpdateStockPostData(String card_id,String action,int number) {
        if ("add".equals(action)) {
            this.increase_stock_value = number;
        } else {
            this.reduce_stock_value = number;
        }
        this.card_id = card_id;
    }

    public int getIncrease_stock_value() {
        return increase_stock_value;
    }

    public void setIncrease_stock_value(int increase_stock_value) {
        this.increase_stock_value = increase_stock_value;
    }

    public int getReduce_stock_value() {
        return reduce_stock_value;
    }

    public void setReduce_stock_value(int reduce_stock_value) {
        this.reduce_stock_value = reduce_stock_value;
    }

    public String getCard_id() {
        return card_id;
    }

    public void setCard_id(String card_id) {
        this.card_id = card_id;
    }
}
